<?php

namespace App\Http\Controllers\Topic\Notice;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use NoticeShow;
class NotificationsController extends Controller
{
    public function __construct()
    {
        $this->middleware('auth');
    }

    public function index()
    {
        // 获取登录用户的所有通知
        $notifications =NoticeShow::index();
        return view('topics.notifications.index', compact('notifications'));
    }
}
